package com.example.demo;

import com.example.demo.repository.EmpRepository;
import com.example.demo.repository.VideoRespository;
import com.example.demo.repository.dao.IVideoService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Hello")
public class Hello {
    private static Logger LOGGER = LoggerFactory.getLogger(Hello.class);

    @Autowired
    EmpRepository empRepository;

    @Autowired
    IVideoService vp;

    @RequestMapping(value = "/hello")
    public String hello(){
        LOGGER.info("hello");
        return vp.getAll().toString();
    }
}
